package com.pkk.components.rpc.response;


import com.pkk.components.rpc.handinter.CommonResponseInterface;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 通用返回工具类
 * @author: peikunkun
 * @create: 2018-08-13 18:03
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResponse<T> implements CommonResponseInterface<T, String, String> {

  private static final long serialVersionUID = -5656466888828063640L;

  /**
   * 响应的头部分
   */
  private ResponseHeader<String, String> header;

  /**
   * 响应的数据
   */
  private T body;
}
